<script setup>
import { useRouter } from 'vue-router'
import { useUserStore } from "@/stores/user.js";
const store = useUserStore();
const router = useRouter()
const toHome = () => {
    // router.push({ name: 'home' })
}
const login = () => {
    console.log(store.isLogin);
}
</script>

<template>
    <div class="h-lvh">
        <div class="navbar bg-base-100">
            <div class="navbar-start">
                <a class="btn btn-ghost text-2xl" @click="toHome">泰安市大宽市政路灯数据展示平台</a>
            </div>
            <div class="navbar-end hidden lg:flex ">
                <ul class="menu menu-horizontal px-1 text-sm font-semibold">
                    <li><router-link :to="{name:'DataEditMap'}">数据展示</router-link></li>
                    <li><router-link :to="{name:'Data'}">数据中心</router-link></li>
                </ul>
            </div>

        </div>
        <router-view></router-view>
    </div>

</template>

<style scoped>
</style>
